package com.dotflat.satistics.vo.general;

import lombok.Data;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2018/7/24
 * *******************************
 */
@Data
public class SituationVo {
    private double planAmount = 0.0;
    private double actualAmount = 0.0;
    private double leftAmount = 0.0;
    private int contractCount = 0;
    private int initiativeLeads = 0;
    private int passivityLeads = 0;

    private double unitPrice = 0.0;
    private double arrivedTransferRate = 0.0;
    private double arrivalInitiativeRate = 0.0;
    private double arrivalPassivityRate = 0.0;

    public static SituationVo of(double planAmount, double actualAmount, Double leftAmount, int contractCount, int initiativeLeads, int passivityLeads, double unitPrice, double arrivedTransferRate, double arrivalInitiativeRate, double arrivalPassivityRate){
        SituationVo vo = new SituationVo();
        vo.setPlanAmount(planAmount);
        vo.setActualAmount(actualAmount);
        vo.setLeftAmount(leftAmount);
        vo.setContractCount(contractCount);
        vo.setInitiativeLeads(initiativeLeads);
        vo.setPassivityLeads(passivityLeads);
        vo.setUnitPrice(unitPrice);
        vo.setArrivedTransferRate(arrivedTransferRate);
        vo.setArrivalInitiativeRate(arrivalInitiativeRate);
        vo.setArrivalPassivityRate(arrivalPassivityRate);
        return vo;
    }
}
